package component;

import java.util.HashMap;
import java.util.Map;

public class Option {
	private String value;
	private String select;
	private String text;

	@Override
	public String toString() {
		Map<String, String> attries=new HashMap<String, String>();
		attries.put("value", value);
		attries.put("selected", select);
		Tag tag = new Tag("option");
		tag.setAttribute(attries);
		tag.setText(text);
		return tag.toString();
	}

	public Option(String value, String select, String text) {
		this.value = value;
		this.select = select;
		this.text = text;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getSelect() {
		return select;
	}

	public void setSelect(String select) {
		this.select = select;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
}